import './assets/main.css'
import axios from "axios";

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import Loading from './components/loading'
const app = createApp(App)
const instance = axios.create();
app.config.globalProperties.$axios = instance
// app.provide('$axios', app.config.globalProperties.$axios)
// 定义全局变量
app.config.globalProperties.$dev='dddd'
app.config.globalProperties.fun=()=>{
  console.log(111)
}
app.use(createPinia())
app.use(Loading)

app.use(router)

app.mount('#app')
type Lod = {
  hide:()=>void,
  show:()=>void
}
declare module  'vue' {
  export interface ComponentCustomProperties {
    _loading:Lod
  }
}
